Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: cloud_print/service/win/cloud_print_service.cc

Issue 10837285: Fixed spacing in command line help. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cloud_print/service/win/cloud_print_service.h" 5 #include "cloud_print/service/win/cloud_print_service.h"
6 6
7 #include <atlsecurity.h> 7 #include <atlsecurity.h>
8 #include <iomanip> 8 #include <iomanip>
9 #include <iostream> 9 #include <iostream>
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 { kUninstallSwitch, "Uninstalls service." }, 91 { kUninstallSwitch, "Uninstalls service." },
92 { kStartSwitch, "Starts service. May be combined with installation." }, 92 { kStartSwitch, "Starts service. May be combined with installation." },
93 { kStopSwitch, "Stops service." }, 93 { kStopSwitch, "Stops service." },
94 { kRunAsUser, "Windows user to run the service in form DOMAIN\\USERNAME. " 94 { kRunAsUser, "Windows user to run the service in form DOMAIN\\USERNAME. "
95 "Make sure user has access to printers." }, 95 "Make sure user has access to printers." },
96 { kRunAsPassword, "Password for windows user to run the service" }, 96 { kRunAsPassword, "Password for windows user to run the service" },
97 }; 97 };
98 98
99 for (size_t i = 0; i < arraysize(kSwitchHelp); ++i) { 99 for (size_t i = 0; i < arraysize(kSwitchHelp); ++i) {
100 std::cout << std::setiosflags(std::ios::left); 100 std::cout << std::setiosflags(std::ios::left);
101 std::cout << " -" << std::setw(15) << kSwitchHelp[i].name; 101 std::cout << " -" << std::setw(16) << kSwitchHelp[i].name;
102 std::cout << kSwitchHelp[i].description << "\n"; 102 std::cout << kSwitchHelp[i].description << "\n";
103 } 103 }
104 std::cout << "\n"; 104 std::cout << "\n";
105 } 105 }
106 106
107 std::string GetOption(const std::string& name, const std::string& default, 107 std::string GetOption(const std::string& name, const std::string& default,
108 bool secure) { 108 bool secure) {
109 std::cout << "Input \'" << name << "\'"; 109 std::cout << "Input \'" << name << "\'";
110 if (!default.empty()) { 110 if (!default.empty()) {
111 std::cout << ", press [ENTER] to keep '"; 111 std::cout << ", press [ENTER] to keep '";
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 484
485 BOOL CloudPrintServiceModule::ConsoleCtrlHandler(DWORD type) { 485 BOOL CloudPrintServiceModule::ConsoleCtrlHandler(DWORD type) {
486 PostThreadMessage(_AtlModule.m_dwThreadID, WM_QUIT, 0, 0); 486 PostThreadMessage(_AtlModule.m_dwThreadID, WM_QUIT, 0, 0);
487 return TRUE; 487 return TRUE;
488 } 488 }
489 489
490 int main() { 490 int main() {
491 base::AtExitManager at_exit; 491 base::AtExitManager at_exit;
492 return _AtlModule.WinMain(0); 492 return _AtlModule.WinMain(0);
493 } 493 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698