Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
PI2 View
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PI2
PI2 View
Commits
21ee17de
Commit
21ee17de
authored
Jan 09, 2019
by
Martin Kröning
🦀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix program path in help
parent
dc0043dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
pi2-demo/meson.build
pi2-demo/meson.build
+1
-1
pi2-demo/src/main.cpp
pi2-demo/src/main.cpp
+9
-4
No files found.
pi2-demo/meson.build
View file @
21ee17de
...
...
@@ -13,6 +13,6 @@ pi2_demo_src = files(
boost_po_dep = dependency('boost', modules : ['program_options'])
executable('pi2-demo', pi2_demo_src,
include_directories: pi2_demo_inc,
dependencies: [pi2_view_dep, boost_po_dep],
dependencies: [pi2_view_dep, boost_po_dep
, microsoft_gsl_dep
],
install: true
)
pi2-demo/src/main.cpp
View file @
21ee17de
...
...
@@ -2,6 +2,8 @@
#include <boost/program_options.hpp>
#include <chrono>
#include <fstream>
#include <gsl/span>
#include <gsl/string_span>
#include <iostream>
#include <ratio>
#include <string>
...
...
@@ -9,6 +11,8 @@
namespace
po
=
boost
::
program_options
;
int
main
(
int
argc
,
char
*
argv
[])
{
auto
args
=
gsl
::
make_span
(
argv
,
argc
);
try
{
std
::
string
durationString
;
double
timescale
;
...
...
@@ -45,10 +49,11 @@ int main(int argc, char *argv[]) {
po
::
notify
(
variablesMap
);
if
(
variablesMap
.
count
(
"help"
)
>
0
)
{
std
::
cout
<<
"Usage: ./pi2-demo/pi2-demo [OPTION]... [FILE]
\n
"
"Parses and simulates FILE according to the PI-2 of the RWTH.
\n\n
"
<<
visibleOptions
<<
std
::
endl
;
std
::
cout
<<
"Usage: "
+
std
::
string
(
args
.
at
(
0
))
+
" [OPTION]... [FILE]
\n
"
"Parses and simulates FILE according to the PI-2 of the "
"RWTH.
\n\n
"
<<
visibleOptions
<<
std
::
endl
;
return
1
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment