Comments (1)
You don't have to use absolute paths.
What happens internally is something like this
var fi = new FileInfo(path);
if (FileMustExist && !fi.Exists)
{
throw new FileNotFoundException
}
So the path handling & validation is done by FileInfo (.NET base class library object).
So if you don't use an absolute path, it will search in the current directory of your commandline session. That might be the same directory as where your executable is or not - depends on how you call it.
from commandlineparser.
Related Issues (20)
- Default value for non-existing argument HOT 3
- EnumeratedValueArgument w/ Enum HOT 2
- Error in the wiki - "Show Usage" section HOT 1
- Question on field and row terminators HOT 5
- Support for Folder Argument HOT 1
- getopt_long syntax HOT 1
- CheckMandatoryArguments not being evaluated HOT 1
- Message typo HOT 1
- Setup Code Shown On Documentation Page Missing Needed Parentheses HOT 1
- v3.0.20 binary is not signed HOT 10
- Parse failure error should say which argument is failing
- Default values are being ignored - regression HOT 2
- DefaultValue & Description for EnumeratedValueArgument?
- How to redirect log to Serilog
- Typo in EArgumentGroupCondition enum HOT 1
- Multiple groups of arguments
- RegexValueArgumentAttribute(char shortName, string longName, string pattern) constructor declaration error HOT 5
- Adding alternative methods for PrintUsage(…), PrintValueInfo etc for using in Non-Console application.
- Make it so that only one of the group of parameters can be specified
- Wrong display for ArgumentRequiresOtherArgumentsCertification
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commandlineparser.