aboutsummaryrefslogtreecommitdiff
path: root/src/help.c
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2015-05-22 21:15:45 -0400
committerFranklin Wei <git@fwei.tk>2015-05-22 21:15:45 -0400
commit06d3b96728f44c32a918eac21c6ec2995bf62a94 (patch)
tree4a9c01d4161642af2eb10a699f03c2472a89ccdf /src/help.c
parent5f5e9ba46eea80c589b6675bf6d4f11f74af7d77 (diff)
downloadmarket-sim-06d3b96728f44c32a918eac21c6ec2995bf62a94.zip
market-sim-06d3b96728f44c32a918eac21c6ec2995bf62a94.tar.gz
market-sim-06d3b96728f44c32a918eac21c6ec2995bf62a94.tar.bz2
market-sim-06d3b96728f44c32a918eac21c6ec2995bf62a94.tar.xz
ncurse-ify the whole thing
Diffstat (limited to 'src/help.c')
-rw-r--r--src/help.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/help.c b/src/help.c
index 70072a8..c362bc4 100644
--- a/src/help.c
+++ b/src/help.c
@@ -4,24 +4,24 @@ void print_usage(int argc, char *argv[])
{
assert(argc > 1);
- printf("Usage: %s [OPTION] [PORTFOLIO]\n", argv[0]);
- printf("Runs a simulated trading session with PORTFOLIO (creating a new one by default).\n\n");
+ output("Usage: %s [OPTION] [PORTFOLIO]\n", argv[0]);
+ output("Runs a simulated trading session with PORTFOLIO (creating a new one by default).\n\n");
- printf("Options:\n");
- printf(" -h, --help\tShow this help and exit\n");
- printf(" -v, --verbose\tEnable verbose operation\n");
- printf(" --version\tOutput version information and exit\n");
+ output("Options:\n");
+ output(" -h, --help\tShow this help and exit\n");
+ output(" -v, --verbose\tEnable verbose operation\n");
+ output(" --version\tOutput version information and exit\n");
}
void print_version(void)
{
- printf("market-sim " PROGRAM_VERSION "\n");
- printf("Built with %s.\n", curl_version());
- printf("Build date: %s\n", __DATE__);
- printf("Copyright (C) 2015 Franklin Wei.\n\n");
- printf("License GPLv2: GNU GPL version 2 <http://www.gnu.org/licenses/gpl-2.0.html>\n");
- printf("This program is distributed in the hope that it will be useful, but WITHOUT ANY\n");
- printf("WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A\n");
- printf("PARTICULAR PURPOSE.\n");
- printf("See the GNU General Public License version 2 for more details.\n");
+ output("market-sim " PROGRAM_VERSION "\n");
+ output("Built with %s.\n", curl_version());
+ output("Build date: %s\n", __DATE__);
+ output("Copyright (C) 2015 Franklin Wei.\n\n");
+ output("License GPLv2: GNU GPL version 2 <http://www.gnu.org/licenses/gpl-2.0.html>\n");
+ output("This program is distributed in the hope that it will be useful, but WITHOUT ANY\n");
+ output("WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A\n");
+ output("PARTICULAR PURPOSE.\n");
+ output("See the GNU General Public License version 2 for more details.\n");
}